package com.jshcbd.modules.asset.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jshcbd.framework.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhoucd
 * @date
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel( description = "资产盘点单")
public class InventoryVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "盘点单编码")
    private String code;

    @ApiModelProperty(value = "盘点单名称")
    private String name;

    @ApiModelProperty(value = "负责人")
    private String headPersonnel;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划开始时间")
    private Date startDate;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划结束时间")
    private Date endDate;

    @ApiModelProperty(value = "盘点范围_合同编号")
    private String scopeContractNamber;

    @ApiModelProperty(value = "盘点范围_公司ID")
    private String scopeCompanyId;


    @ApiModelProperty(value = "盘点范围_公司名称")
    private String scopeCompanyName;


    @ApiModelProperty(value = "盘点范围_单位楼")
    @Dict(dicCode = "building")
    private Integer scopeLocationBuilding;

    @ApiModelProperty(value = "盘点范围_楼层  ")
    private Integer scopeLocationFloor;

    @ApiModelProperty(value = "状态（1:制定/2.盘点中/3.盘点结束）")
    private Integer state;


    @ApiModelProperty(value = "备注")
    private String  note;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
